package com.javaEE.gamepigeon.dao;

import com.javaEE.gamepigeon.entity.Group;
import com.javaEE.gamepigeon.entity.UserFavorite;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AttentionMapper {

    int addFavorite(Integer userId, Integer comId, Integer weight, String note,Integer groupId);

    int deleteFavorite(Integer userId, Integer comId);

    List<UserFavorite> queryFavorite(Integer userId);

    int addGroup(Integer userId, String name);

    List<Group> queryGroup(Integer userId);

    int deleteGroup(Integer groupId);

    int updateGroup(Integer groupId, String groupName);

    List<UserFavorite> getCompetition(Integer groupId);
}
